package com.poizon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@TableName("t_user_log")
public class UserLog {
  @TableId(type = IdType.AUTO)
  private Long id;
  private Long uid;
  private String ip;
  private String info;
  private Integer type;
  private Date ctime;

  public UserLog(Long uid, String ip, String info, Integer type) {
    this.uid = uid;
    this.ip = ip;
    this.info = info;
    this.type = type;
    ctime = new Date();
  }
}
